package factory;

import com.woniux.entity.Animal;
import com.woniux.entity.Cat;
import com.woniux.entity.Dog;

/**
 * @author 佘赛飞
 * @create 2021 -11 -10 4:41 PM
 */
public class StaticAnimalFactory {

    public  static Animal CreatAnimal(){
        return new Cat();

    }

    public Animal getAnimal(){
        return new Dog();
    }
}
